package Grantsfire::Schema::User;

use strict;
use warnings;

use base 'DBIx::Class';

__PACKAGE__->load_components("Timestamper", "Core");
__PACKAGE__->table("user");
__PACKAGE__->add_columns(
  "id",
  { data_type => "INT", default_value => undef, is_nullable => 0, size => 11 },
  "username",
  {
    data_type => "VARCHAR",
    default_value => undef,
    is_nullable => 1,
    size => 50,
  },
  "password",
  {
    data_type => "VARCHAR",
    default_value => undef,
    is_nullable => 1,
    size => 50,
  },
  "openid",
  {
    data_type => "VARCHAR",
    default_value => undef,
    is_nullable => 1,
    size => 255,
  },
  "role",
  { data_type => "ENUM", default_value => undef, is_nullable => 0, size => 8 },
  "email_address",
  {
    data_type => "VARCHAR",
    default_value => undef,
    is_nullable => 1,
    size => 50,
  },
  "display_name",
  {
    data_type => "VARCHAR",
    default_value => undef,
    is_nullable => 1,
    size => 100,
  },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->has_many(
  "feeds",
  "Grantsfire::Schema::Feed",
  { "foreign.user" => "self.id" },
);


# Created by DBIx::Class::Schema::Loader v0.04005 @ 2009-05-12 22:27:20
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:guD5idmP3KsapSPTEttVlQ


# You can replace this text with custom content, and it will be preserved on regeneration
1;
